package site.zhouinfo.swing;

import java.awt.*;
import java.util.Random;

/**
 * @author zhou
 * @create 2016-12-07 14:17
 * @email zhouinfo@qq.com
 */
public class TWaverUtil {

    public static int getRandomInt(int width) {
        Random random = new Random(width);
        return random.nextInt();
    }

    public static Image getImage(String s) {
        return Toolkit.getDefaultToolkit().getImage(s);
    }
}
